﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

namespace ScriptManager
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static int GetRandomNumber(int min, int max)
        {
            //Random rnd = new Random();
            //ScriptManager.RandomNumberService
            //uiScriptManager.
            RandomNumberService r = new RandomNumberService();
            return r.GetANumber(min, max);
        }
    }
}